import { BrowserRouter as Router, useRoutes } from 'react-router-dom';
// import { useRoutes } from 'react-router-dom';
import { routes } from '@/router/index';

// import { BrowserRouter as Router } from 'react-router-dom';
function RouterApp() {
  const Outlet = useRoutes(routes);
  return Outlet;
}
function App() {
  // const [count, setCount] = useState(0)
  // const element = useRoutes(routes);
  return (
    <>
      {/* {element} */}
      <Router>
        <RouterApp />
      </Router>
    </>
  );
}

export default App;
